home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BackColor = &H00C0C0C0&
- Caption = "LFStatus Demo"
- ClientHeight = 3000
- ClientLeft = 285
- ClientTop = 3720
- ClientWidth = 10785
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 16.5
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 3405
- Icon = STATTEST.FRX:0000
- Left = 225
- LinkTopic = "Form1"
- ScaleHeight = 3000
- ScaleWidth = 10785
- Top = 3375
- Width = 10905
- Begin LFStatus0 LFStatus1
- Prop30 = "Click on '...' for About Box"
- Align = 2 'Align Bottom
- Enhanced = 0 'False
- FloodPercent = 0
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- Height = 300
- Ind1Caption = ""
- Ind2Caption = ""
- Ind3Caption = ""
- Ind4Caption = ""
- Ind5Caption = ""
- Left = 0
- Message = "LFStatus1"
- ShowPercent = 0 'False
- Top = 2700
- Width = 10785
- End
- Begin CommandButton Command13
- Caption = "Normal"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 525
- Left = 1890
- TabIndex = 15
- Top = 1830
- Width = 1245
- End
- Begin CommandButton Command12
- Caption = "12 Hour"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 525
- Left = 4650
- TabIndex = 14
- Top = 1215
- Width = 1245
- End
- Begin CommandButton Command11
- Caption = "Align Bottom"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 525
- Left = 7380
- TabIndex = 13
- Top = 1875
- Width = 1245
- End
- Begin CommandButton Command8
- Caption = "Set Captions"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 4650
- TabIndex = 11
- Top = 1875
- Width = 1215
- End
- Begin CommandButton Command5
- Caption = "Clear Captions"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 3255
- TabIndex = 10
- Top = 1875
- Width = 1215
- End
- Begin TextBox Text1
- Alignment = 1 'Right Justify
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 315
- Left = 6330
- TabIndex = 8
- Text = "10"
- Top = 2115
- Width = 675
- End
- Begin CommandButton Command10
- Caption = "Percent Off"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 7380
- TabIndex = 7
- Top = 1215
- Width = 1215
- End
- Begin CommandButton Command9
- Caption = "Flood"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 6015
- TabIndex = 6
- Top = 1215
- Width = 1215
- End
- Begin Timer Timer1
- Left = 360
- Top = 690
- End
- Begin CommonDialog CMDialog1
- Left = 330
- Top = 1215
- End
- Begin CommandButton Command7
- Caption = "Time On"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 3255
- TabIndex = 5
- Top = 1215
- Width = 1215
- End
- Begin CommandButton Command6
- Caption = "Date On"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 1920
- TabIndex = 4
- Top = 1215
- Width = 1215
- End
- Begin CommandButton Command4
- Caption = "Cyan"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 7380
- TabIndex = 3
- Top = 570
- Width = 1215
- End
- Begin CommandButton Command3
- Caption = "Blue"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 6015
- TabIndex = 2
- Top = 570
- Width = 1215
- End
- Begin CommandButton Command2
- Caption = "Green"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 4650
- TabIndex = 1
- Top = 570
- Width = 1215
- End
- Begin CommandButton Command1
- Caption = "Red"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 495
- Left = 3255
- TabIndex = 0
- Top = 585
- Width = 1215
- End
- Begin Label Label2
- BackColor = &H00C0C0C0&
- Caption = "Message BackColor:"
- Height = 435
- Left = 2160
- TabIndex = 12
- Top = 600
- Width = 990
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- Caption = "Timer Interval"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 195
- Left = 6150
- TabIndex = 9
- Top = 1890
- Width = 960
- End
- Dim Pct%
- Declare Function SendMessage& Lib "User" (ByVal hWnd%, ByVal wMsg%, ByVal wParam%, lParam As Any)
- Const VBM_INITPROPPOPUP = &H400 + &HC00 + &H9
- Sub Command1_Click ()
- LFStatus1.MessageBackColor = RGB(255, 0, 0)
- 'LFStatus1.Message = "Red"
- End Sub
- Sub Command10_Click ()
- LFStatus1.ShowPercent = Not LFStatus1.ShowPercent
- If LFStatus1.ShowPercent Then
- Command10.Caption = "Percent On"
- Command10.Caption = "Percent OFF"
- End If
- End Sub
- Sub Command11_Click ()
- If LFStatus1.Align = 2 Then
- LFStatus1.Align = 1
- Command11.Caption = "Align Top"
- LFStatus1.Align = 2
- Command11.Caption = "Align Bottom"
- End If
- End Sub
- Sub Command12_Click ()
- LFStatus1.Show24Hour = Not LFStatus1.Show24Hour
- If LFStatus1.Show24Hour Then
- Command12.Caption = "24 Hour"
- Command12.Caption = "12 Hour"
- End If
- End Sub
- Sub Command13_Click ()
- If LFStatus1.Enhanced = 0 Then
- LFStatus1.Enhanced = 1
- Command13.Caption = "Enhanced"
- LFStatus1.Enhanced = 0
- Command13.Caption = "Normal"
- End If
- End Sub
- Sub Command2_Click ()
- LFStatus1.MessageBackColor = RGB(0, 255, 0)
- 'LFStatus1.Message = "Green"
- End Sub
- Sub Command3_Click ()
- LFStatus1.MessageBackColor = RGB(0, 0, 255)
- 'LFStatus1.Message = "Blue"
- End Sub
- Sub Command4_Click ()
- LFStatus1.MessageBackColor = &HFFFF00
- 'LFStatus1.Message = "Cyan"
- End Sub
- Sub Command5_Click ()
- LFStatus1.Ind1Caption = ""
- LFStatus1.Ind2Caption = ""
- LFStatus1.Ind3Caption = ""
- LFStatus1.Ind4Caption = ""
- LFStatus1.Ind5Caption = ""
- End Sub
- Sub Command6_Click ()
- LFStatus1.ShowDate = Not LFStatus1.ShowDate
- If LFStatus1.ShowDate Then
- Command6.Caption = "Date On"
- Command6.Caption = "Date OFF"
- End If
- End Sub
- Sub Command7_Click ()
- LFStatus1.ShowTime = Not LFStatus1.ShowTime
- If LFStatus1.ShowTime Then
- Command7.Caption = "Time On"
- Command7.Caption = "Time OFF"
- End If
- End Sub
- Sub Command8_Click ()
- LFStatus1.Message = "Ready"
- LFStatus1.MessageBackColor = RGB(192, 192, 192)
- LFStatus1.Ind1Caption = " "
- LFStatus1.Ind2Caption = "Row 01 Col 01"
- LFStatus1.Ind3Caption = "readme.wri"
- LFStatus1.Ind4Caption = "Edit"
- LFStatus1.Ind5Caption = "Lake Forest Software"
- End Sub
- Sub Command9_Click ()
- Pct% = 0
- If Val(Text1) <> 0 Then
- Timer1.Interval = Val(Text1)
- Timer1.Interval = 100
- End If
- End Sub
- Sub Form_Load ()
- 'LFStatus1.Ind1Caption = "Ovr"
- 'LFStatus1.Ind2Caption = "Row 01 Col 01"
- 'LFStatus1.Ind3Caption = "readme.wri"
- 'LFStatus1.Ind4Caption = "View"
- 'LFStatus1.Ind5Caption = "Lake Forest Software"
- 'LFStatus1.MessageBackColor = &HFFFF00
- End Sub
- Sub Timer1_Timer ()
- Pct% = Pct% + 1
- If Pct% > 100 Then
- Pct% = 0
- Timer1.Interval = 0
- End If
- LFStatus1.FloodPercent = Pct%
- End Sub
-